<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'hyzkSel1.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
     <select name="hyzk2" id="hyzk2" style="width: 86%">
        <option value="未婚" <c:if test="${hyzk2=='未婚'}"> selected</c:if>>未婚</option>
        <option value="已婚" <c:if test="${hyzk2=='已婚'}"> selected</c:if>>已婚</option>
        <option value="离婚" <c:if test="${hyzk2=='离婚'}"> selected</c:if>>离婚</option>
        <option value="丧偶" <c:if test="${hyzk2=='丧偶'}"> selected</c:if>>丧偶</option>
        </select>
  </body>
</html>
